<div id="funny-pictures">
     <div id="funny-header">
      <?=(isset($sub_heading)) ? $sub_heading : ''?></div>
     <div id="funny-content">  <? $count=1; foreach ($details as $fundetails) { ?>
	
    <?// print_r( $fundetails);?>
     
   <div id="funny-img">
 <a href="<?=$fundetails->link?>">   <img src="<?=base_url();?>assets/fun/thumbnail_<?=$fundetails->id?>.jpg" alt="hh" border="0px"  /></a>
   </div>
             
      <? if($count==3){ break;} $count++; }  ?>
      
       <? if(!empty($details)){  foreach ($details as $details) { ?>
	      
      <div  id="list"> &bull;
       <?=anchor($details->link,ucfirst(trim_name($details->heading,29)),'title = "'.ucfirst($details->heading.'"'))?>
            </div>
      <? } }?>
       
    
     <div id="more"> More..</div>
      </div>
  </div>
    	